package com.zzxy.spring34.service.impl;

import com.zzxy.spring34.service.IUserService;
import org.springframework.stereotype.Component;

@Component
public class UserServiceImpl implements IUserService {
    public UserServiceImpl (){
    }
    public UserServiceImpl(String username){
        this.username=username;
    }
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String s) {
        this.username = username;
    }

    @Override
    public void adduser() {
        System.out.println("add user success..." +username);
    }

}
